<?php

namespace maoxuner\LaravelJsonRpc;

use Illuminate\Support\ServiceProvider;

class JsonRpcServiceProvider extends ServiceProvider
{
    public function register()
    {
        $this->mergeConfigFrom(
            __DIR__.'/../config/jsonrpc.php', 'jsonrpc'
        );

        $this->booted(function () {
            $this->publishes([
                __DIR__.'/../config/jsonrpc.php' => config_path('jsonrpc.php'),
            ], 'jsonrpc');
        });
    }
}
